package com.mindskip.xzs.viewmodel.admin.qywx;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author guoguangkai
 * @since 2022/9/13
 */
@Data
@Accessors(chain = true)
@ToString
public class QywxDepartmentTreeV1 implements Serializable {
    private static final long serialVersionUID = 3727367154157271706L;

    /**
     * 1-部门  2-员工
     */
    private Integer type;
    /**
     * 对于部门就是部门Id,对于员工这里就是员工id
     */
    private Object id;
    /**
     * 对于部门就是部门名称,对于员工这里就是员工姓名
     */
    private String label;
    /**
     * 父部门id
     */
    private Long parentid;

    private List<QywxDepartmentTreeV1> children = Collections.emptyList();
}
